/*
 * @Author: gyh
 * @Date: 2024-05-08 11:22:54
 * @LastEditTime: 2024-05-08 18:09:08
 */
import type { login, wxMinParams } from '@/types/login'
import { request } from '@/utils/request'

export const wxMinApi = (data: wxMinParams) => {
  return request<login>({
    method: 'POST',
    url: '/login/wxMin',
    data,
  })
}

export const wxMinSimpleApi = (phoneNumber: string) => {
  return request<login>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: { phoneNumber },
  })
}
